package com.study.spark.scala.chapter06

import java.lang.reflect.Field

object Scala12_Object_Enum {
  def main(args: Array[String]): Unit = {
    // TODO 面向对象 - 扩展 - 枚举类
    println(Color.RED)//red
  }
}

// 枚举类
object Color extends Enumeration {
  val RED = Value(1, "red")
  val YELLOW = Value(2, "yellow")
  val BLUE = Value(3, "blue")
}


